package com.hsgene.generator.dto;

import com.hsgene.generator.constants.GeneratorEnum;

import java.io.Serializable;

/**
 * ID生成器编号生成结果DTO
 *
 * @author wangbing
 * @version 1.0, 2018/6/28
 */
public class GeneratorDto implements Serializable {

    private static final long serialVersionUID = 1861905212872422233L;

    /**
     * 编号类型
     */
    private String type;

    /**
     * 编号值
     */
    private String serialNumber;

    public GeneratorDto() {
    }

    public GeneratorDto(String type, String serialNumber) {
        this.type = type;
        this.serialNumber = serialNumber;
    }

    public GeneratorDto(GeneratorEnum generatorType) {
        this.type = generatorType.getType();
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public String getSerialNumber() {
        return serialNumber;
    }

    public void setSerialNumber(String serialNumber) {
        this.serialNumber = serialNumber;
    }
}
